import request from "@/utils/request";

export function createTeacher(data) {
  return request({
    url: "/admin/user/teacher/addTeacher",
    method: "post",
    data
  });
}

export function getTeacherList(params) {
  return request({
    url: "/admin/user/teacher/teacherList",
    method: "get",
    params
  });
}

export function delTeacher(data) {
  return request({
    url: "/admin/user/teacher/delTeacher",
    method: "post",
    data
  });
}

export function getTeacherInfo(params) {
  return request({
    url: "/admin/user/teacher/teacherInfo",
    method: "get",
    params
  });
}

export function updateTeacher(data) {
  return request({
    url: "/admin/user/teacher/updateTeacher",
    method: "post",
    data
  });
}

export function changeSort(data) {
  return request({
    url: "/admin/user/teacher/changeSort",
    method: "post",
    data
  });
}

export function teacherClass(params) {
  return request({
    url: "/admin/user/teacher/relateChapterInfo",
    method: "get",
    params
  });
}

export function delTeachRecord(params) {
  return request({
    url: "/admin/user/teacher/delTeachRecord",
    method: "get",
    params
  });
}
